<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="css/public.css" media="all">
		<script type="text/javascript" src="layui/layui.js"></script>
		<script type="text/javascript" src="layui/css/layui.css"></script>
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/finance.js"></script>
		<script type="text/javascript" src="js/paging.js"></script>
	
		<title>财务管理-它得记录</title>
	</head>
	<body onload="pageStart(51)">
		<!--添加start-->
		<div style="display: none;" id="addDiv" class="add-container">
			<div class="black-cloth"></div>
			<div class="add-content">
				<div class="popup-top">
					<label class="popup-add-title">添加</label>
					<img onclick="addClose();" src="img/close_icon.png"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">姓&nbsp;&nbsp;名:</label>
					<input id="username" type="text" class="popup-input" placeholder="请输入姓名"/>
					<label class="popup-txt">时&nbsp;&nbsp;间:</label>
					<input id="add_date" type="date" class="popup-input" />
				</div>
				<div class="popup-item">
					<label class="popup-txt">电&nbsp;&nbsp;话:</label>
					<input id="phone" type="tel" class="popup-input" placeholder="请输入联系电话"/>
					<label class="popup-txt">部&nbsp;&nbsp;门:</label>
					<select class="popup-select" id="department">
					</select>
				</div>
				<div class="popup-item">
					<label class="popup-txt">内&nbsp;&nbsp;容:</label>
					<select class="popup-select" id="content" style="width:10.75rem ;">
					</select>
					<img class="popup-add-img" src="img/add_icon.png" onclick="addType();"/>
					<label class="popup-txt">金&nbsp;&nbsp;额:</label>
					<input id="money" type="number" class="popup-input" placeholder="请输入金额"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">备&nbsp;&nbsp;注:</label>
					<textarea class="popup-textarea" id="remarks"></textarea>
				</div>
				<div class="popup-item" style="text-align: center;">
					<center>
					<button class="saveBtn" onclick="addSave();">保存</button>
					<button class="cancelBtn" onclick="addClose();" >取消</button>
					</center>
				</div>				
			</div>
		</div>
		<!--添加end-->
		<!--编辑start-->
		<div style="display: none;" id="editDiv" class="add-container">
			<div class="black-cloth"></div>
			<div class="add-content">
				<div class="popup-top">
					<label class="popup-add-title">编辑</label>
					<img onclick="editClose();" src="img/close_icon.png"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">姓&nbsp;&nbsp;名:</label>
					<input id="username_edit" type="text" class="popup-input" placeholder="请输入姓名"/>
					<label class="popup-txt">时&nbsp;&nbsp;间:</label>
					<input id="add_date_edit" type="date" class="popup-input" value=""/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">电&nbsp;&nbsp;话:</label>
					<input id="phone_edit" type="text" value="" class="popup-input" placeholder="请输入联系电话"/>
					<label class="popup-txt">部&nbsp;&nbsp;门:</label>
					<select class="popup-select" id="department_edit" disabled="disabled">
					</select>
				</div>
				<div class="popup-item">
					<label class="popup-txt">类&nbsp;&nbsp;别:</label>
					<select class="popup-select" id="content_edit" style="width:10.75rem ;">
					</select>
					<img class="popup-add-img" src="img/add_icon.png" onclick="addType();"/>
					<label class="popup-txt">金&nbsp;&nbsp;额:</label>
					<input id="money_edit" type="number" class="popup-input" placeholder="请输入金额"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">备&nbsp;&nbsp;注:</label>
					<textarea class="popup-textarea" id="remarks_edit"></textarea>
				</div>
				<div class="popup-item" style="text-align: center;">
					<center>
					<button class="saveBtn" onclick="editSave();">保存</button>
					<button class="cancelBtn" onclick="editClose();" >取消</button>
					</center>
				</div>
				<input id="extraId" style="display: none;" />
			</div>
		</div>
		<!--编辑end-->
		<!--新建类别start-->
		<div style="display: none;" id="typeDiv" class="add-container">
			<div class="black-cloth"></div>
			<div class="add-content" style="width: 400px;height: 200px;">
				<div class="popup-top">
					<label class="popup-add-title">新建类别</label>
					<img onclick="typeClose();" src="img/close_icon.png"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">类别名称:</label>
					<input id="typename" type="text" class="popup-input" placeholder="请输入类别名称"/>
				</div>
				<div class="popup-item" style="text-align: center;">
					<center>
					<button class="saveBtn" onclick="typeSubmit();">确定</button>
					</center>
				</div>				
			</div>
		</div>
		<!--新建类别end-->
		<div class="page-div">
			<label class="my-txt">项目部</label>
			<select id="search_project" class="my-select">
				<option value="-1">全部</option>
			</select>
			<label class="my-txt">部门</label>
			<select id="search_department" class="my-select">
				<option value="-1">全部</option>
			</select>
			<label class="my-txt">起</label>
			<input id="search_date_start" type="date" class="my-date"/>
			<label class="my-txt">止 
			</label>
			<input id="search_date_end" type="date" class="my-date"/>
			<input id="search_keyword" type="text" class="my-input" placeholder="搜索关键字"/>
			<button id="searchBtn" class="my-search-btn" onclick="search(51);">搜索</button>
			<button id="addBtn" class="my-add-btn" onclick="add();">添加</button>
			<button for="importForm" onclick="toinalExport();" class="my-import-btn">导入</button>
			<form id="importForm" enctype="multipart/form-data">
				<input type="file" class="my-import-btn" id="fileInput" multiple="multiple" onchange="fileImport()" style="display: none;">
			</form>
	        </form>
		</div>
		<div class="data-div">
			<div id="data" class="data-div-table">
			<table>
				<tr class="table-top">
					<td width="10%">姓名</td>
					<td width="10%">部门</td>
					<td width="15%">电话</td>
					<td width="10%">类别</td>
					<td width="8%">金额(元)</td>
					<td width="15%">日期</td>
					<td width="20%">备注</td>
					<td width="12%">操作</td>
				</tr>
				<tr class="item-white">
					<td colspan="8"><div>暂无数据</div></td>
				</tr>
			</table>
			</div>
			<center><div id="page" class="page_div"></div></center>
		</div>
		<input id="pageNo" value="1" style="display: none;"/>
		<input id="total_page" value="1"  style="display: none;"/>
		<input id="total_rows" value="1"  style="display: none;"/>
		<input id="keyword" value="查询"  style="display: none;"/>
	</body>
</html>
